package com.magina.calendario;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class frmMain extends Activity
{
    private Button btnRegEvento = null;
    private Button btnListarEvento = null;
    private Button btnCategoria = null;
    private Button btnSair = null;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        btnCategoria = (Button)findViewById(R.id.btnCategorias);
        btnCategoria.setOnClickListener(new View.OnClickListener()
        {
            public void onClick(View v) {
                Intent i = new Intent(frmMain.this,frmCategoria.class);
                startActivity(i);
            }
        });

        btnSair = (Button)findViewById(R.id.btnSair);
        btnSair.setOnClickListener(new View.OnClickListener()
        {
            public void onClick(View v)
            {
                finish();
            }
        });

        btnListarEvento = (Button)findViewById(R.id.btnListarEvento);
        btnListarEvento.setOnClickListener(new View.OnClickListener()
        {
            public void onClick(View v) {
                Intent i = new Intent(frmMain.this,frmListarEvento.class);
                startActivity(i);
            }
        });

        btnRegEvento = (Button)findViewById(R.id.btnRegEvento);
        btnRegEvento.setOnClickListener(new View.OnClickListener()
        {
            public void onClick(View v) {
                Intent i = new Intent(frmMain.this,frmNovoEvento.class);
                startActivity(i);
            }
        });

    }
}
